package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Getter
@Setter
public class Salary {
    private Long id;

    private Long money;

    private Integer year;

    private Integer month;

    private Employee emp;

    private SystemDictionaryItem payout;

    public String getJson() {
        HashMap<String, Object> map = new HashMap<>();
        map.put("id",id);
        map.put("money",money);
        map.put("year",year);
        map.put("month",month);
        map.put("emp",emp);
        map.put("payout",payout);
        return JSON.toJSONString(map);
    }

}